package net.hn.hnms.biz.plan.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Author: ly
 * 销售计划
 *
 * @date 2022-09-22
 */
@Data
@ApiModel("销售计划")
public class PlanSaleVO extends BaseVO {
    @ApiModelProperty(value = "销售计划id")
    private String salePlanId;
    @ApiModelProperty(value = "计划名称")
    private String planName;
    @ApiModelProperty(value = "计划编号")
    private String planCode;
    @ApiModelProperty(value = "运销方式")
    private String saleType;
    //    @ApiModelProperty(value = "煤炭种类")
//    private String coalType;
    @ApiModelProperty(value = "计划销量")
    private BigDecimal saleAmount;
    @ApiModelProperty(value = "矿编码")
    private String mineCode;
    @ApiModelProperty(value = "计划开始日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd", timezone = "GMT+8"
    )
    private Date planStartDate;
    @ApiModelProperty(value = "计划结束日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd", timezone = "GMT+8"
    )
    private Date planEndDate;
    @ApiModelProperty(value = "计划类型 0日计划 1月计划 2年计划")
    private String planType;
    @ApiModelProperty(value = "创建人ID")
    private String createUserId;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8"
    )
    private Date createTime;
    @ApiModelProperty(value = "修改人ID")
    private String updateUserId;
    @ApiModelProperty(value = "最后修改时间")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8"
    )
    private Date updateTime;
    @ApiModelProperty(value = "删除标识 0正常 1删除")
    private String delFlag;
    @ApiModelProperty(value = "禁用:1  启用:0")
    private String status;
    @ApiModelProperty(value = "销售去向：  0内销  1外销公路 2外销铁路")
    private String salesDestination;

    @ApiModelProperty(value = "煤炭种类：  0.原煤 1.块煤 2末煤 3.混煤")
    private String typeCoal;

   /* public void setSalesDestination(String salesDestination) {
        if ("0".equals(salesDestination)) {
            this.salesDestination = "内销";
        }
        if ("1".equals(salesDestination)) {
            this.salesDestination = "外销公路";
        }
        if ("2".equals(salesDestination)) {
            this.salesDestination = "外销铁路";
        }
    }

    public void setTypeCoal(String typeCoal) {
        if ("0".equals(typeCoal)) {
            this.typeCoal = "原煤";
        }
        if ("1".equals(typeCoal)) {
            this.typeCoal = "块煤";
        }
        if ("2".equals(typeCoal)) {
            this.typeCoal = "末煤";
        }
        if ("3".equals(typeCoal)) {
            this.typeCoal = "混煤";
        }

    }*/
}









